﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="inc/home::header">
</head>
<link type="text/css" th:href="@{/css/content.css}" rel="stylesheet" />

<body>
	<!--返回-->
	<div class="back" onclick="location='/index'">
		<img src="images/back.png" />
	</div>
	<div th:include="header :: header"></div>
	<div class="header-title">
		<span>计划管理</span>
		<a  href="plan-wwctj.html?myp=2"><div class="zbdzll-tj"></div></a>
	</div>
	<div class="spare-a">
			<div class="spare-al">
				<div style="height:10px"></div>
				<ul>
				<a onclick="loadPage('/planType')"    shiro:hasPermission="sys:plan:plan"  >
					<li class="active">
						<p>计划制定</p>
					</li>
					</a>
					<a onclick="loadPage('/myplan')"   shiro:hasPermission="sys:myplan:myplan"  >
					<li>
						<p>我的计划</p>
					</li>
					</a>
				</ul>
			</div>
			<div class="spare-ar">
				<div class="spare-ara">
					<div class="spare-ara-a clearfix">
						<div class="spare-ara-al">
							<div class="spare-ara-all"><input type="text" placeholder="请输入关键字" id="userName" /></div>
							<div class="spare-ara-alr"  onclick="js_method()" ></div>
						</div>
						<div class="spare-ara-ar">
							<a shiro:hasPermission="sys:plan:add"   href="#" onclick="loadPage('/planTypeAdd')"   class="spare-tj">添加类别</a>
							<a shiro:hasPermission="sys:plan:del"  href="#" class="spare-qx" sel="Y" style="display:none" hid='Y'>全 选</a>
							<a shiro:hasPermission="sys:plan:edit"  href="#" class="spare-edit" style="display:none" hid='Y'  onclick="loadPageEdit('/planTypeEdit')"   >编 辑</a>
							<a shiro:hasPermission="sys:plan:del"  href="#" class="spare-del" style="display:none" hid='Y'     	onclick="loadPageDele('/planType/dele','/planType')" >删 除</a>
						</div>
					</div>
						<div class="srcoll-documentation" id="srcoll-documentation">
					<div class="documentation nottake">
						<ul id="lists">
							
						</ul>
						</div></div>
					
				</div>
			</div>
		</div>
	<!--shiro控制bootstraptable行内按钮看见性 来自的创新方案 -->
	<div>
		<script type="text/javascript">
			var s_plan = 'hidden';
			var s_myplan = 'hidden';
		</script>
	</div>
	<div shiro:hasPermission="sys:plan:plan">
		<script type="text/javascript">
			s_plan = '';
		</script>
	</div>
	<div shiro:hasPermission="sys:myplan:myplan">
		<script type="text/javascript">
			s_myplan = '';
		</script>
	</div>

</body>
<script type="text/javascript" th:src="@{/home/js/planType.js}"></script>
<script th:inline="javascript">
	/*<![CDATA[*/
	 //默认加载   每页显示数据 12              
	$(function() {
		if(s_plan=="hidden"){
			loadPage('/myplan');
		}else{
			loadDataPage("operation/planType", "srcoll-documentation", "lists", 12,	"userName");
			
		}
	});
	/*]]>*/
</script>
</html>
